package com.woniuxy.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value="药品订单")
public class MedicineOrder {
    @ApiModelProperty(value = "药品订单id")
    private int id;
    @ApiModelProperty(value = "药品订单编号")
    private String no;
    @ApiModelProperty(value = "订单提交时间")
    private Date join_time;
    @ApiModelProperty(value = "用户名")
    private String name;
    @ApiModelProperty(value = "收货人姓名")
    private String receiver;
    @ApiModelProperty(value = "订单金额")
    private BigDecimal price;
    @ApiModelProperty(value = "订单状态")
    private int status;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "开始时间")
    private String start;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "结束时间")
    private String end;
}
